<link rel="stylesheet" type="text/css" href="<?php echo $this->baseUrl() ;?>/css/lienhe.css" media="screen" />
<script src="<?php echo $this->baseUrl() ;?>/scripts/lienhe.js" type="text/javascript"></script>
<script src="<?php echo $this->baseUrl() ;?>/scripts/tooltip/wz_tooltip.js"></script>
<script src="<?php echo $this->baseUrl() ;?>/scripts/sortertable/jquery.tablesorter.min.js" type="text/javascript"></script>
<script type="text/javascript">
	$(document).ready(function() { 
	    $("#danhsach_lienhe").tablesorter(); 
	});
</script>
<!-- Call calenda  -->
    <script src="<?php echo $this->baseUrl() ;?>/scripts/calenda/js/jscal2.js"></script>
    <script src="<?php echo $this->baseUrl() ;?>/scripts/calenda/js/lang/vi.js"></script>
    <link rel="stylesheet" type="text/css" href="<?php echo $this->baseUrl() ;?>/scripts/calenda/css/jscal2.css" />
    <link rel="stylesheet" type="text/css" href="<?php echo $this->baseUrl() ;?>/scripts/calenda/css/border-radius.css" />
    <link rel="stylesheet" type="text/css" href="<?php echo $this->baseUrl() ;?>/scripts/calenda/css/steel/steel.css" />
	
<!-- End call calenda -->
<div class ="conten" >

    <table cellpadding="0"  cellspacing="0" class="tableconten" border="0">
        <tr>
            <td class="left_conten" >
            <!-- left  -->
               <div class="module-left">
                      <div class="t_m">
            			<div class="t_r">
            				<h3> 
                                Tạo mới 
            					<!--<a class="toggleicon" onclick="slidetoggle('box15')"><div class='shbox15 show'><img src="<?php echo $this->baseUrl() ;?>/images/box/down1.png" /></div><div class='shbox15 hidden'><img src="<?php echo $this->baseUrl() ;?>/images/box/down2.png" /></div></a>-->
            				</h3>
            				
            			</div>
            		  </div>
            		  <div id="box15" class="module-content">
            			<ul>
            				<li><img class="icons" src="<?php echo $this->baseUrl();?>/images/icon/icon-32-new_01.png" /><a href="<?php echo $this->baseUrl()?>/thumau/themthumau"  return false;" >Thêm thư mẫu  </a></li>
            				<li><img class="icons" src="<?php echo $this->baseUrl();?>/images/icon/icon-32-new_01.png" /><a href="#" onclick="themmoilienhe()">Thêm liên hệ</a></li>
            				<li><img class="icons" src="<?php echo $this->baseUrl();?>/images/icon/icon-32-new_01.png" /><a href="<?php echo $this->baseUrl()?>/guithu/"  return false;"> Gửi thư </a></li>
            				<li><img class="icons" src="<?php echo $this->baseUrl();?>/images/icon/icon-32-new_01.png" /><a href="#" onclick="themnhomlienhe(); return false;">Thêm nhóm liên hệ </a></li>
            				
            			</ul>
            		  </div>
            		  <div class="module-bottom">
            			<div class="md-bt-r"><div class="md-bt-l">&nbsp;</div></div>
            		  </div>	                  
               </div>
               
               <!-- thao tac 2 -->
               
               <div class="module-left">
                      <div class="t_m">
            			<div class="t_r">
            				<h3> 
                                Danh Sách Nhóm liên hệ
            					<!--<a class="toggleicon" onclick="slidetoggle('box15')"><div class='shbox15 show'><img src="<?php echo $this->baseUrl() ;?>/images/box/down1.png" /></div><div class='shbox15 hidden'><img src="<?php echo $this->baseUrl() ;?>/images/box/down2.png" /></div></a>-->
            				</h3>
            				
            			</div>
            		  </div>
            		  <div id="box15" class="module-content">
            			<ul id = "nhom_lh">
            				<li class= 'li_nhomlienhe' style="display:none;"  ></li>
							<?php foreach ($this->nhomlh as $nhomlh ){?>
            				<li class= 'li_nhomlienhe' id="linhom_<?php echo $nhomlh['id_nlh'] ?>" >
            					<a href="<?php echo $this->baseUrl()?>/lienhe/index/nhomlh/<?php echo $nhomlh['id_nlh'] ?>" title="Xem nhóm liên hệ này" >
            						<img class="iconnhom" src="<?php echo $this->baseUrl();?>/images/icon/icon-32-contacts_011.png"  />
            					</a>
            					<a href="#"  onclick="doitennhom('<?php echo $nhomlh['ten_nhom_lh']?>','<?php echo $nhomlh['id_nlh'] ?>'); return false;" >
            						<?php echo $nhomlh['ten_nhom_lh']  ?>
            					</a>
            				</li>
            				<?php }?>
            			</ul>
            		  </div>
            		  <div class="module-bottom">
            			<div class="md-bt-r"><div class="md-bt-l">&nbsp;</div></div>
            		  </div>	                  
               </div>                
               <!-- thao tac 3 -->
               
               <div class="module-left">
                      <div class="t_m">
            			<div class="t_r">
            				<h3> 
                                Danh Sách
            					<a class="toggleicon" href='#'><div onclick="slidetoggle('98')" class='shboxs98 show'><img src="<?php echo $this->baseUrl() ;?>/images/box/down1.png" /></div><div onclick="hslidetoggle('98')" class='hshboxs98 hidden'><img src="<?php echo $this->baseUrl() ;?>/images/box/down2.png" /></div></a>
            				</h3>
            				
            			</div>
            		  </div>
            		  <div id="box98" class="module-content">
            			<ul>
            				<li><img class="icons" src="<?php echo $this->baseUrl();?>/images/icon/icon-32-contacts_01.png" /><a href="<?php echo $this->baseUrl()?>/thunhap/"   >Danh sách thư nháp </a></li>
            				<li><img class="icons" src="<?php echo $this->baseUrl();?>/images/icon/icon-32-contacts_01.png" /><a href="<?php echo $this->baseUrl()?>/thumau/index/"   >Danh sách thư mẫu </a></li>
            				<li><img class="icons" src="<?php echo $this->baseUrl();?>/images/icon/icon-32-contacts_01.png" /><a href="<?php echo $this->baseUrl()?>/lienhe/" >Danh Sách liên hệ</a></li>
            				<li><img class="icons" src="<?php echo $this->baseUrl();?>/images/icon/icon-32-contacts_01.png" /><a href="<?php echo $this->baseUrl()?>/thudagui/" > Danh sách thư đã gửi </a></li>
            				
            			</ul>
            		  </div>
            		  <div class="module-bottom">
            			<div class="md-bt-r"><div class="md-bt-l">&nbsp;</div></div>
            		  </div>	                  
               </div>                
               
            <!--  end left--> 
             </td>
            <td class="right_conten" >
            <div class="bao_benphai">
            <!-- right  -->
                <!-- breadcrumd-->
    			<div class="breadcrum" >
    				<ul>
    					<li class="home"><a href="<?php echo $this->baseUrl()?>/lienhe/">Liên hệ</a></li>
    					<li class="br_item"><span>Danh sách liên hệ</span></li>
    				</ul>
    			</div>
		    	<!-- end breadcrumd-->
		    	
		    	<!--  Start Thêm thư   -->
                
                     <form action="<?php echo $this->baseUrl() ?>/lienhe/index/" method="post" >
                     <div class="timkem_list"> 
                            <span class="timthan">
                                 Tìm kiếm : <img  src="<?php echo $this->baseUrl() ?>/images/icon/search_20x20.png" width="17px" height="17px" align="absmiddle"/>
                            	<input type="text" id="tentim" name="keytimkiem" style="width: 250px;"  />
                            	<input type="submit" value="Tìm kiếm" class="save"/>

                            </span>
                           <div class="divthaotac" title="Xóa bộ lọc tìm kiếm"  align="center"> 
	                            <a href="<?php echo $this->baseUrl()?>/lienhe/index">
	                            	 <span id='xoaboloc' class="xoaboloc"></span>
	                            	 Xóa bộ lọc 
	                            </a>
                           </div>
                          <div class="divthaotac" title="Xóa Liên Hệ" align="center"> 
	                            <a href="#" onclick="xoanhieulienhe()">
	                            	 <span class="xoatoanbo"></span>
	                            	Sọt rác  
	                            </a>
                          </div>
                         <div class="divthaotac" title="Thêm Liên Hệ"  align="center"> 
	                            <a href="#" onclick="themmoilienhe()">
	                            	 <span class="themmoi"></span>
	                            	Thêm mới  
	                            </a>
                          </div>
                            <!-- Ket qua trả về --> 
                            <div class="suggestionsBox">
                               <div class="suggestionList">                            
                               </div> 
                            </div>
                            <!-- Ket qua trả về --> 
                            
                     </div>
                    </form>
                     <!-- End Tìm kiếm  -->                
                
					<div class="box-l-n" style="clear:both;">
						<div class="box-l-n-l">
							<div class="box-l-n-r">
								<div class="box-l-n-m" align="left"> <div class="xoa_botton"><input onclick="xoanhieulienhe()" type="button" value="Xóa" class="delete" />    </div> <h3  >Danh sách Liên Hệ </h3></div>
							</div>
						</div>
					<div class="box-l-n-body">
						<div class="box-l-n-wrr">
						<form id="danhsachlienhe" action="">
		    			<table cellspacing="1" id="danhsach_lienhe">
							<thead>
							<tr align="center">
								<td width="3%" ><input id="check" type="checkbox" onclick="selectReverse('danhsachlienhe','lhid')" style="width: 50px" /></td>
								<th width="20%" ><b>Tên Liên hệ </b></th>
								<td width="3%"> <img  title="Liên hệ quan trọng " src="<?php echo  $this->baseUrl()?>/images/icon/flag-16-d.png"> </td>
								<td width="20%" ><b>Nhóm liên hệ </b></td>
								<td width="15%"><b>Email</b></td>
								<td width="12%"><b>Ngày tạo</b></td>
								<td width="8%" ><b>Sử dụng</b></td>
								<td  width="8%"><b>Thao tác</b></td>
							</tr>
							</thead>
							<tbody>
							<?php foreach ($this->lienhe as $lienhe ){?>
							<tr class="row_<?php echo  $lienhe['idlh'] ?>">
								<td align="center" ><input type="checkbox" id="lhid_" value="<?php echo  $lienhe['idlh'] ?>" name="lislh[]"/></td>
								<td width="20%"  onmouseover="showTipSP('<?php echo $lienhe['tenlh'] ?>','<?php echo  $lienhe['email'] ?>','<?php echo $lienhe['dien_thoai'] ?>','<?php echo $lienhe['tenlh'] ?>');" onmouseout="UnTip();" >
									<input type="hidden" id="company" value="" />
									<a href="#"> <b><?php echo $lienhe['tenlh'] ?></b></a>
								</td>
								<td width="3%" align="center">
									<?php if($lienhe['flag'] == 0){ ?>
										<a href="#"><span id="laco_<?php echo  $lienhe['idlh'] ?>" > <img  onclick="thaydoitrangthailienhe(<?php echo  $lienhe['idlh'] ?>,1)" title="Thay đổi trạng thái " src="<?php echo  $this->baseUrl()?>/images/icon/flag-16-d.png"> </span></a>
									<?php }else{?>
										<a href="#"><span id="laco_<?php echo  $lienhe['idlh'] ?>" > <img  onclick="thaydoitrangthailienhe(<?php echo  $lienhe['idlh'] ?>,0)" title="Thay đổi trạng thái" src="<?php echo  $this->baseUrl()?>/images/icon/flag-16.png"> </span></a>
									<?php }?>
								</td>
								<td width="20%" align="center">
									<?php echo $lienhe['ten_nhom_lh']?>
							    </td>
							    <td width="15%"><?php echo  $lienhe['email'] ?></td>
								<td width="12%" align="center">
									<?php echo $lienhe['ngay_tao']?>
								</td>
								<td align="center" width="8%">
									<?php if($lienhe['su_dung'] == "1"){ ?>
										<samp id='sp_lien_he_<?php echo $lienhe['idlh']?>'><a href="#" onclick="khongsudunglienhe('<?php echo $this->iddangnhap;?>','<?php echo $lienhe['idlh'] ?>','0');" >  
											<img title="Không sử dụng liên hệ" src="<?php echo $this->baseUrl() ?>/images/icon/check2.png"  width="17" hight="17" />
										</a></samp>	 
									<?php }else {?>
										<samp id='sp_lien_he_<?php echo $lienhe['idlh']?>'><a href="#" onclick="sudunglienhe('<?php echo $this->iddangnhap;?>','<?php echo $lienhe['idlh'] ?>','1');" >  
											<img title="Sử dụng liên hệ" src="<?php echo $this->baseUrl() ?>/images/icon/notice-alert.png"  width="17" hight="17" />
										</a></samp>	
										
									<?php }?>
								</td>
								<td align="center">
									<a href="#"><span onclick="sualienhe('<?php echo $lienhe['idlh'] ?>')"><img class="icons" title="Sửa liên hệ" src="<?php echo $this->baseUrl() ?>/images/icon/page_white_edit.png"></span></a>
									<a  href="#"><span onclick="xoaonelienhe('<?php echo $lienhe['idlh'] ?>')"><img class="icons" title="Xóa liên hệ" src="<?php echo $this->baseUrl() ?>/images/icon/icon-16-delete.png"></span></a>
								</td>
							</tr>
								<?php }?>				
							</tbody>
						</table>
						</div>
				<!--  Phân Trang  -->
		    	<?php 
		    	echo $this->paginationControl($this->paginator,
                                    'Sliding',
                                    'pagination.phtml');
		    	 ?>
		    	<!--  end Trang  -->
						
					</div>
			   </div>
			   
				
				<input type="hidden" value="<?php echo $this->baseUrl()?>" id="url"/>
				<input type="hidden" value="<?php echo $this->iddangnhap;?>" id="iddn"/>
		    	<!--  End them thư  -->
		    </div>	
            <!-- right -->
            </td>
            
        </tr>
    
    </table>
</div>



<!--  Pupup thêm Liên Hệ  -->
<div id = 'themnhomlienhe' style="display:none" title="Thêm mới nhóm liên hệ"> 

          <form id="themnhom"  >

            <div class="row_1" style="margin-top:35px;"> 
                <div class="ten_chu"><label for="name">Nhập Tên nhóm </label></div>
                <div class="input_popup" ><input type="text" name="ten_nhom_lienhe" id="ten_nhom_lienhe" class="required text ui-widget-content ui-corner-all input" /></div>
            </div> 
           <div align="center" style="margin-top: 35px;">
           <input type="hidden" value="<?php echo $this->baseUrl()?>/ajax/themnhomlienhe" id="urlajax"/>
           <input type="hidden" value="<?php  echo $this->iddangnhap; ?>" id="iddn"/>
            <input type="button"  onclick="themmoinhomlienhe('<?php echo $this->iddangnhap; ?>');" class="save" value="Lưu lại" style="width:100px;" />
            </div>   
         </form> 

</div>
<!--  End pupup them nhom liên hệ -->

<!--  Pupup thêm Liên Hệ  -->
<div id = 'suanhom' style="display:none" title="Sửa nhóm liên hệ"> 

            <div class="row_1" style="margin-top:15px;"> 
                <div class="ten_chu"><label for="name">Hãy nhập tên nhóm mới  </label></div>
                <div class="input_popup" ><input type="text" name="ten_nhom_lienhesua" id="ten_nhom_lienhesua" class="required text ui-widget-content ui-corner-all input" /></div>
            </div> 
           <div align="center" style="padding-top: 35px;">
           <input type="hidden" value="<?php echo $this->baseUrl()?>" id="urlsua"/>
           <input type="hidden" value="" id="idnhom"/>
            <input type="button"  onclick="suanhomnay('<?php echo $this->iddangnhap; ?>');" class="save" value="Lưu lại" style="width:100px;" />
            <input type="button"  onclick="xoanhom();" class="delete" value="Xóa nhóm này" style="width:100px;" />
            </div>   

</div>
<!--  End pupup them nhom liên hệ -->

<!-- Thêm mới liên hệ -->
<div id="themmoilienhe" title="Thêm liên hệ mới" style="display:none;">
	<form  method="post" action="<?php echo $this->baseUrl()?>/lienhe/themlienhe" id="form_themlienhe" onsubmit="return checkthemlienhe();" >
	<div class="sectionFrm"> Thêm liên hệ </div>
		    		<!--  Bên trái -->
		    		<div class="left_conten_form" >
		    		
		    			<div class="eleRow">
		    				<div class="eleCaption">Đánh dấu  </div>
		    				<div class="eleBody">
		    					<input type="hidden" name="danhdau" id="danhdau" value="0" />
		    					<a href="#"></a><span id='laco' > <img id='rmlaco' onclick='ghichulienhe(1)' title="Liên hệ quan trọng " src="<?php echo  $this->baseUrl()?>/images/icon/flag-16-d.png"> </span></a>
		    				</div>
		    			</div>			    		
		    		
		    			<div class="eleRow">
		    				<div class="eleCaption">Tên người liên hệ </div>
		    				<div class="eleBody">
		    					<input type="text" name="tennguoilienhe" id="tennguoilienhe" class="required"  /><span class="redtext">*</span>
		    				</div>
		    			</div>
		    			<div class="eleRow">
		    				<div class="eleCaption">Giới tính </div>
		    				<div class="eleBody">
		    					<input type="radio" name="gioitinh" id="gioitinh1" class="radio" value="1"  validate="required:true" />Nam
		    					<input type="radio" name="gioitinh" id="gioitinh2"  class="radio" value="0"  />Nữ
		    					
		    				</div>
		    			</div>
		    			<div class="eleRow">
		    				<div class="eleCaption">Email</div>
		    				<div class="eleBody">
		    					<input type="text" name="emailnguoilienhe" id="emailnguoilienhe" class="required email" onblur="checkttrungemailkienhe(<?php echo $this->iddangnhap; ?>)"  /><span class="redtext">*</span>
		    				</div>
		    			</div>		    			
		    			<div class="eleRow">
		    				<div class="eleCaption">Nhóm liên hệ </div>
		    				<div class="eleBody" id=nhomlienhe>
		    					<select name="id_nhomlh" id="id_nhomlh">
                                    <option value="0"  > Chọn </option>
									
		    					</select>
		    					
		    				</div>
		    			</div>
		    			<div class="eleRow">
		    				<div class="eleCaption">Điện thoại</div>
		    				<div class="eleBody">
		    					<input type="text" name="dienthoainguoilienhe" id="dienthoainguoilienhe" class="required "  />
		    				</div>
		    			</div>
		    			<div class="eleRow">
		    				<div class="eleCaption">Ngày sinh </div>
		    				<div class="eleBody">
		    					<input type="text" name="ngaysinhnguoilienhe" id="ngaysinhnguoilienhe"   />
		    				</div>
		    			</div>		    			
		    			<div class="eleRow">
		    				<div class="eleCaption">Địa chỉ</div>
		    				<div class="eleBody">
		    					<textarea rows="" cols="" name="diachinguoilienhe" id="diachinguoilienhe" ></textarea>
		    					
		    				</div>
		    			</div>			    			
		    		</div>
		    		<!-- ben phải -->
		    		<div class="right_conten_form" >
		    			
		    			<div class="eleRow">
		    				<div class="eleCaption">Chức vụ</div>
		    				<div class="eleBody">
		    					<input type="text" name="chucvunguoilienhe" id="chucvunguoilienhe"  />
		    				</div>
		    			</div>	
		    			<div class="eleRow">
		    				<div class="eleCaption">Công ty </div>
		    				<div class="eleBody">
		    					<input type="text" name="congtynguoilienhe" id="congtynguoilienhe"  />
		    				</div>
		    			</div>
		    			<div class="eleRow">
		    				<div class="eleCaption">Website </div>
		    				<div class="eleBody">
		    					<input type="text" name="websitenguoilienhe" id="websitenguoilienhe"  />
		    				</div>
		    			</div>
		    			<div class="eleRow">
		    				<div class="eleCaption">Ghi Chú</div>
		    				<div class="eleBody">
		    					<textarea rows="" cols="" name="ghichunguoilienhe" id="ghichunguoilienhe"></textarea>
		    				</div>
		    			</div>			    						    			    			
		    			
		    			<div class="eleRow">
		    				<div class="eleCaption">Người tạo</div>
		    				<div class="eleBody">
		    					<input type="text" name="nguoitao" id="nguoitao" disabled="disabled"  value="<?php echo $this->name?>"/>
		    				</div>
		    				
		    			</div>		    				
		    			<div class="eleRow">
		    				<div class="eleCaption">Ngày tạo</div>
		    				<div class="eleBody">
		    					<input type="text"   disabled="disabled" value="<?php echo $this->today; ?>"/>
		    				</div>
		    				
		    			</div>			    			
			    						    						    		
		    		</div>
		    		<!--  end ben phai -->
		    		
		    		<!-- Phan day  -->
			           <div align="center" class="day_them" id ="thembaclh">
				          <span class="bottomday"> 
				           <input type="hidden" value="<?php echo $this->baseUrl()?>" id="urlsua"/>
				           <input type="hidden" value="<?php echo $this->iddangnhap ?>" name="iddn" id="iddn"/>
			               <input type="submit" class="save" value="Lưu lại" style="width:100px;" />
			           	   <input type="button" style="width:100px;" value="Hủy bỏ" class="save" onclick="closethemlh()">
			           	  </span>
			            </div>  		    		
		    		<!-- end Phan day  -->
		    </form>	

</div>
<!-- End thêm mới liên hệ -->
    <script type="text/javascript">//<![CDATA[
      Calendar.setup({
        inputField : "ngaysinhnguoilienhe",
        trigger    : "ngaysinhnguoilienhe",
        onSelect   : function() { this.hide() },
        showTime   : 12,
        dateFormat : "%d-%m-%Y"
       // dateFormat : "%Y-%m-%d %I:%M %p"
      });
    //]]></script>
    
<!-- Sửa  liên hệ -->
<div id="sualienhe" title="Sửa liên hệ " style="display:none;">
	<form  method="post" action="<?php echo $this->baseUrl()?>/lienhe/sualienhe" id="form_themlienhesua" onsubmit="return checksualienhe();" >
	<div class="sectionFrm"> Sửa liên hệ </div>
		    		<!--  Bên trái -->
		    		<div class="left_conten_form" >
		    			<div class="eleRow">
		    				<div class="eleCaption">Đánh dấu  </div>
		    				<div class="eleBody">
		    					<input type="hidden" name="danhdaulh" id="danhdaulh" value="0"  />
		    					<a href="#"><span id="lacosua"></span></a>
		    				</div>
		    			</div>	    		
		    			<div class="eleRow">
		    				<div class="eleCaption">Tên người liên hệ </div>
		    				<div class="eleBody">
		    					<input type="text" name="tennguoilienhesua" id="tennguoilienhesua" class="required"  /><span class="redtext">*</span>
		    				</div>
		    			</div>
		    			
		    			<div class="eleRow">
		    				<div class="eleCaption">Giới tính </div>
		    				<div class="eleBody">
		    					<input type="radio" name="gioitinhsua" id="gioitinhsua1" class="radio" value="1"  validate="required:true" />Nam
		    					<input type="radio" name="gioitinhsua" id="gioitinhsua2"  class="radio" value="0"  />Nữ
		    					
		    				</div>
		    			</div>
		    			<div class="eleRow">
		    				<div class="eleCaption">Email</div>
		    				<div class="eleBody">
		    					<input type="text" name="emailnguoilienhesua" id="emailnguoilienhesua" class="required email"  /><span class="redtext">*</span>
		    				</div>
		    			</div>		    			
		    			<div class="eleRow">
		    				<div class="eleCaption">Nhóm liên hệ </div>
		    				<div class="eleBody" id=nhomlienhesua>
		    					<select name="id_nhomlhsua" id="id_nhomlhsua">
                                    <option value="0"  > Chọn </option>
									
		    					</select>
		    					
		    				</div>
		    			</div>
		    			<div class="eleRow">
		    				<div class="eleCaption">Điện thoại</div>
		    				<div class="eleBody">
		    					<input type="text" name="dienthoainguoilienhesua" id="dienthoainguoilienhesua" class="required "  />
		    				</div>
		    			</div>
		    			<div class="eleRow">
		    				<div class="eleCaption">Ngày sinh </div>
		    				<div class="eleBody">
		    					<input type="text" name="ngaysinhnguoilienhesua" id="ngaysinhnguoilienhesua"   />
		    				</div>
		    			</div>		    			
		    			<div class="eleRow">
		    				<div class="eleCaption">Địa chỉ</div>
		    				<div class="eleBody">
		    					<textarea rows="" cols="" name="diachinguoilienhesua" id="diachinguoilienhesua" ></textarea>
		    					
		    				</div>
		    			</div>			    			
		    		</div>
		    		<!-- ben phải -->
		    		<div class="right_conten_form" >
		    			
		    			<div class="eleRow">
		    				<div class="eleCaption">Chức vụ</div>
		    				<div class="eleBody">
		    					<input type="text" name="chucvunguoilienhesua" id="chucvunguoilienhesua"  />
		    				</div>
		    			</div>	
		    			<div class="eleRow">
		    				<div class="eleCaption">Công ty </div>
		    				<div class="eleBody">
		    					<input type="text" name="congtynguoilienhesua" id="congtynguoilienhesua"  />
		    				</div>
		    			</div>
		    			<div class="eleRow">
		    				<div class="eleCaption">Website </div>
		    				<div class="eleBody">
		    					<input type="text" name="websitenguoilienhesua" id="websitenguoilienhesua"  />
		    				</div>
		    			</div>
		    			<div class="eleRow">
		    				<div class="eleCaption">Ghi Chú</div>
		    				<div class="eleBody">
		    					<textarea rows="" cols="" name="ghichunguoilienhesua" id="ghichunguoilienhesua"></textarea>
		    				</div>
		    			</div>			    						    			    			
		    			
		    			<div class="eleRow">
		    				<div class="eleCaption">Người tạo</div>
		    				<div class="eleBody">
		    					<input type="text" name="nguoitaosua" id="nguoitaosua" disabled="disabled"  value="<?php echo $this->name?>"/>
		    				</div>
		    				
		    			</div>		    				
		    			<div class="eleRow">
		    				<div class="eleCaption">Ngày tạo</div>
		    				<div class="eleBody">
		    					<input type="text"  id='ngay_tao_sua'  disabled="disabled" />
		    				</div>
		    				
		    			</div>
		    			<div class="eleRow">
		    				<div class="eleCaption">Ngày cập nhật</div>
		    				<div class="eleBody">
		    					<input type="text"   disabled="disabled" value="<?php echo $this->today; ?>"/>
		    				</div>
		    				
		    			</div>
			    						    						    		
		    		</div>
		    		<!--  end ben phai -->
		    		
		    		<!-- Phan day  -->
			           <div align="center" class="day_them">
				          <span class="bottomday"> 
				           <input type="hidden" value="<?php echo $this->iddangnhap ?>" name="iddnsua" id="iddnsua"/>
				           <input type="hidden"  name="idlhsua" id="idlhsua"/>
			               <input type="submit" class="save" value="Lưu lại" style="width:100px;" />
			           	   <input type="button" style="width:100px;" value="Hủy bỏ" class="save" onclick="closesualh()">
			           	  </span>
			            </div>  		    		
		    		<!-- end Phan day  -->
		    </form>	

</div>
<!-- End Sửa liên hệ -->  
    <script type="text/javascript">//<![CDATA[
      Calendar.setup({
        inputField : "ngaysinhnguoilienhesua",
        trigger    : "ngaysinhnguoilienhesua",
        onSelect   : function() { this.hide() },
        showTime   : 12,
        dateFormat : "%d-%m-%Y "
       // dateFormat : "%Y-%m-%d %I:%M %p"
      });
    //]]></script>  
